﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GarageRead.aspx.cs" Inherits="Announcement.GarageRead" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>小区车位、车库对外销售方案</title>
    <link href="../css/Default.css" rel="stylesheet" type="text/css" />
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
    <header id="top">
		<div class="wrapper">
			<!-- Title/Logo - can use text instead of image -->
			<div id="title">
			<a href="../ApplyList.aspx">
			<img SRC="img/lzfcjys_logo.png" alt="lzfcjys" />
			</a>
			</div>
			<!-- Top navigation -->
			<div id="topnav">
				<a href="#"><img class="avatar" SRC="img/user_32.png" alt="" /></a>
				Logged in as <b>lzfcjys</b>
				<span>|</span> <asp:LinkButton ID="lbtnExit" runat="server" 
                    onclick="lbtnExit_Click">退出</asp:LinkButton><br />
			</div>
			
			
			<!-- End of Aside links -->
		</div>
	</header>
    <div id="pagetitle">
        <div class="wrapper">
            <h1>首页 &rarr; 公告申请表 &rarr; <span>小区车位、车库对外销售方案</span></h1>
        </div>
    </div>
    <div class="clear">
        &nbsp;</div>
    <div id="mainbox">
        
        <div>
            <asp:ObjectDataSource ID="odsGarage" runat="server" DeleteMethod="Delete" InsertMethod="Insert"
                OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByCCode" TypeName="Announcement.DAL.DataSetGarageTableAdapters.T_GarageTableAdapter"
                UpdateMethod="Update">
                <DeleteParameters>
                    <asp:Parameter Name="Original_Id" Type="Int32" />
                </DeleteParameters>
                <UpdateParameters>
                    <asp:Parameter Name="HouseSum" Type="Int32" />
                    <asp:Parameter Name="HouseSold" Type="Int32" />
                    <asp:Parameter Name="HouseUnsold" Type="Int32" />
                    <asp:Parameter Name="HouseSoldRate" Type="Decimal" />
                    <asp:Parameter Name="HouseIsSell" Type="Boolean" />
                    <asp:Parameter Name="GarageSum" Type="Int32" />
                    <asp:Parameter Name="GarageSold" Type="Int32" />
                    <asp:Parameter Name="GarageUnsold" Type="Int32" />
                    <asp:Parameter Name="GaragePlanSell" Type="Int32" />
                    <asp:Parameter Name="GaragePlanRate" Type="Decimal" />
                    <asp:Parameter Name="DistrictName" Type="String" />
                    <asp:Parameter Name="DevelopersName" Type="String" />
                    <asp:Parameter Name="StartDate" Type="DateTime" />
                    <asp:Parameter Name="EndDate" Type="DateTime" />
                    <asp:Parameter Name="FillDate" Type="DateTime" />
                    <asp:Parameter Name="Original_Id" Type="Int32" />
                </UpdateParameters>
                <SelectParameters>
                    <asp:QueryStringParameter Name="CCode" QueryStringField="CCode" Type="String" />
                </SelectParameters>
                <InsertParameters>
                    <asp:Parameter Name="HouseSum" Type="Int32" />
                    <asp:Parameter Name="HouseSold" Type="Int32" />
                    <asp:Parameter Name="HouseUnsold" Type="Int32" />
                    <asp:Parameter Name="HouseSoldRate" Type="Decimal" />
                    <asp:Parameter Name="HouseIsSell" Type="Boolean" />
                    <asp:Parameter Name="GarageSum" Type="Int32" />
                    <asp:Parameter Name="GarageSold" Type="Int32" />
                    <asp:Parameter Name="GarageUnsold" Type="Int32" />
                    <asp:Parameter Name="GaragePlanSell" Type="Int32" />
                    <asp:Parameter Name="GaragePlanRate" Type="Decimal" />
                    <asp:Parameter Name="DistrictName" Type="String" />
                    <asp:Parameter Name="DevelopersName" Type="String" />
                    <asp:Parameter Name="StartDate" Type="DateTime" />
                    <asp:Parameter Name="EndDate" Type="DateTime" />
                    <asp:Parameter Name="FillDate" Type="DateTime" />
                </InsertParameters>
            </asp:ObjectDataSource>
            
            <asp:FormView ID="fvGarage" runat="server" DataKeyNames="Id" DataSourceID="odsGarage"
                OnItemCommand="fvGarage_ItemCommand" OnDataBound="fvGarage_DataBound">
                <ItemTemplate>
                    
                    <asp:HiddenField ID="hfId" runat="server" Value='<%# Eval("Id") %>' />
                    <table width="100%" class="stylized">
                        <tr>
                            <th colspan="4">
                                基本信息
                            </th>
                        </tr>
                        <tr>
                            <td>
                                小区名称
                            </td>
                            <td>
                                房开名称
                            </td>
                            <td>
                                小区业主优先购买期限（60日内）
                            </td>
                            <td>
                                填写时间
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="labDistrictName" runat="server" Text='<%# Bind("DistrictName") %>' />
                            </td>
                            <td>
                                <asp:Label ID="labDevelopersName" runat="server" Text='<%# Bind("DevelopersName") %>' />
                            </td>
                            <td>
                                从<asp:Label ID="labStartDate" runat="server" Text='<%# Bind("StartDate","{0:yyyy年MM月dd日}")%>' />
                                到<asp:Label ID="labEndDate" runat="server" Text='<%# Bind("EndDate","{0:yyyy年MM月dd日}")%>' />
                            </td>
                            <td>
                                <asp:Label ID="labFillDate" runat="server" Text='<%# Bind("FillDate","{0:yyyy年MM月dd日}")%>' />
                            </td>
                        </tr>
                    </table>
                    <table width="100%" class="stylized">
                        <tr>
                            <th colspan="5">
                                小区商品房状况
                            </th>
                        </tr>
                        <tr>
                            <td>
                                商品房总数量（套、间）
                            </td>
                            <td>
                                已售（备案）商品房数量（套、间）
                            </td>
                            <td>
                                未售商品房数量（套、间）
                            </td>
                            <td>
                                商品房已售数量与总数量比列（%）
                            </td>
                            <td>
                                是否符合对外销售条件
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="labHouseSum" runat="server" Text='<%# Bind("HouseSum") %>' />
                            </td>
                            <td>
                                <asp:Label ID="labHouseSold" runat="server" Text='<%# Bind("HouseSold") %>' />
                            </td>
                            <td>
                                <asp:Label ID="labHouseUnsold" runat="server" Text='<%# Bind("HouseUnsold") %>' />
                            </td>
                            <td>
                                <asp:Label ID="labHouseSoldRate" runat="server" Text='<%# Bind("HouseSoldRate") %>' />
                            </td>
                            <td>
                                <asp:CheckBox ID="cbHouseIsSell" runat="server" Checked='<%# Bind("HouseIsSell") %>'
                                    Enabled="false" />
                            </td>
                        </tr>
                    </table>
                    <table width="100%" class="stylized">
                        <tr>
                            <th colspan="5">
                                小区车位、车库状况
                            </th>
                        </tr>
                        <tr>
                            <td>
                                车位、车库总数量（间）
                            </td>
                            <td>
                                已售（备案）车位、车库数量（间）
                            </td>
                            <td>
                                未售车位、车库数量（间）
                            </td>
                            <td>
                                拟对外销售车位、车库数量（间）
                            </td>
                            <td>
                                车位、车库规划配置比（%）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="labGarageSum" runat="server" Text='<%# Bind("GarageSum") %>' />
                            </td>
                            <td>
                                <asp:Label ID="labGarageSold" runat="server" Text='<%# Bind("GarageSold") %>' />
                            </td>
                            <td>
                                <asp:Label ID="labGarageUnsold" runat="server" Text='<%# Bind("GarageUnsold") %>' />
                            </td>
                            <td>
                                <asp:Label ID="labGaragePlanSell" runat="server" Text='<%# Bind("GaragePlanSell") %>' />
                            </td>
                            <td>
                                <asp:Label ID="labGaragePlanRate" runat="server" Text='<%# Bind("GaragePlanRate") %>' />
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:FormView>
            
            <asp:ListView ID="lvGarageDetails" runat="server" DataKeyNames="Id">
                <ItemTemplate>
                    <tr>
                        <asp:HiddenField ID="hfId" runat="server" Value='<%# Eval("Id") %>' />
                        <asp:HiddenField ID="hfGId" runat="server" Value='<%# Eval("Garage_Id") %>' />
                        <td>
                            <asp:Label ID="NumberLabel" runat="server" Text='<%# Eval("Number") %>' />
                        </td>
                        <td>
                            <asp:Label ID="AreaLabel" runat="server" Text='<%# Eval("Area") %>' />
                        </td>
                        <td>
                            <asp:Label ID="UnitPriceLabel" runat="server" Text='<%# Eval("UnitPrice") %>' />
                        </td>
                        <td>
                            <asp:Label ID="TotalPriceLabel" runat="server" Text='<%# Eval("TotalPrice") %>' />
                        </td>
                    </tr>
                </ItemTemplate>
                
                <EmptyDataTemplate>
                    <table runat="server" style="background-color: #FFFFFF; border-collapse: collapse;
                        border-color: #999999; border-style: none; border-width: 1px;">
                        <tr>
                            <td>
                                未返回数据。
                            </td>
                        </tr>
                    </table>
                </EmptyDataTemplate>
                <LayoutTemplate>
                    <table id="itemPlaceholderContainer" runat="server" border="1" width="100%" class="stylized">
                        <tr>
                            <th id="Th5" colspan="4">
                                车位、车库拟对外销售情况
                            </th>
                        </tr>
                        <tr id="Tr2" runat="server" >
  
                            <td id="Th1" runat="server">
                                车位号
                            </td>
                            <td id="Th2" runat="server">
                                套内面积
                            </td>
                            <td id="Th3" runat="server">
                                单价
                            </td>
                            <td id="Th4" runat="server">
                                总价
                            </td>
                        </tr>
                        <tr id="itemPlaceholder" runat="server">
                        </tr>
                    </table>
                </LayoutTemplate>
            </asp:ListView>
            <asp:LinkButton ID="lbtnBack" runat="server" onclick="lbtnBack_Click">返回</asp:LinkButton>
            &nbsp;<asp:LinkButton ID="AnnouncementButton" runat="server" 
                CommandName="Announcement" Text="查看公告" onclick="AnnouncementButton_Click" />
        </div>
        
    </div>
    </form>
</body>
</html>
